﻿@model MvcApplication1.Models.WorkOrder

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>WorkOrder</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkDetails)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkDetails)
            @Html.ValidationMessageFor(model => model.WorkDetails)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkPrograms)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkPrograms)
            @Html.ValidationMessageFor(model => model.WorkPrograms)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SiteID, "Site")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SiteID", String.Empty)
            @Html.ValidationMessageFor(model => model.SiteID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkStartTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkStartTime)
            @Html.ValidationMessageFor(model => model.WorkStartTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkEndTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkEndTime)
            @Html.ValidationMessageFor(model => model.WorkEndTime)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
